package top.eggcode.gateway.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import top.eggcode.component.session.SessionHelper;
import top.eggcode.component.session.manager.SessionManager;

import javax.annotation.PostConstruct;

@Component
public class SecurityStart {

    @Qualifier("redisSessionManager")
    @Autowired
    private SessionManager sessionManager;

    @PostConstruct
    private void initUtil() {
        SessionHelper.setSessionManager(sessionManager);
    }

}
